<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"

      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2>Vizualizar Cartório</h2>
            <h:form id="form" acceptcharset="utf-8">
                <p:growl id="msg" life="3000"/>
                <p:panel  styleClass="container_24 clearfix " style="background: none; border: none; ">
                    <p class="subtitle">Dados do Cartório</p>

                    <p:outputLabel value="Nome :" style="font-weight: bold" styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.nome}" styleClass="grid_18"/>
                    <div class="clear"/>
                    <p:outputLabel value="Denominação :" style="font-weight: bold" styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.denominationOffice}" styleClass="grid_18"/>
                    <div class="clear"/>
                    <p:outputLabel value="Natureza :" style="font-weight: bold" styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.natureOffice}" styleClass="grid_18"/>
                    <div class="clear"/>
                    <p:outputLabel value="Email :" style="font-weight: bold" styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.email}" styleClass="grid_18"/>

                    <div class="clear"/>
                    <p class="subtitle">Dados do Titular</p>

                    <p:outputLabel value="Titular :" style="font-weight: bold"  styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.titular}"  styleClass="grid_18"/>
                    <div class="clear"/>
                    <p:outputLabel value="Cpf :" style="font-weight: bold" styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.cpf}" styleClass="grid_18"/>
                    <div class="clear"/>
                    <h:outputLabel value="Ingresso :  " style="font-weight: bold" styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.admission}" styleClass="grid_18"/>
                    <div class="clear"/>
                    <h:outputLabel value="Data Posse :  " style="font-weight: bold" styleClass="grid_3"/>
                    <h:outputText value="#{managerSearchNotaryOffice.notaryOffice.datePossesion}" styleClass="grid_18">
                        <f:convertDateTime pattern="dd/MM/yyyy"/>
                    </h:outputText>
                    <div class="clear"/>
                    
                    
                    <p class="subtitle">Dados do Endereço</p>
                        <p:outputLabel value="Rua :" style="font-weight: bold" styleClass="grid_3"/>
                        <h:outputText value="#{managerSearchNotaryOffice.address.street}" styleClass="grid_18" />
                    <div class="clear"/>
                        <p:outputLabel value="Bairro :" style="font-weight: bold" styleClass="grid_3"/>
                        <h:outputText value="#{managerSearchNotaryOffice.address.district}" styleClass="grid_18"/>
                    <div class="clear"/>
                        <p:outputLabel value="Num :" style="font-weight: bold" styleClass="grid_3"/>
                        <h:outputText value="#{managerSearchNotaryOffice.address.num}"  styleClass="grid_18"/>
                    <div class="clear"/>
                        <p:outputLabel value="Cep :" style="font-weight: bold" styleClass="grid_3"/>
                        <h:outputText value="#{managerSearchNotaryOffice.address.cep}" styleClass="grid_18"/>
                    <div class="clear"/>
                        <p:outputLabel  value=" Cidade: " style="font-weight: bold"  styleClass="grid_3"/>
                        <h:outputText value="#{managerSearchNotaryOffice.address.city.name} - 
                                      #{managerSearchNotaryOffice.address.city.states.sgl}" styleClass="grid_18"/>
                    <div class="clear"/>
                        <p:outputLabel value="Telefone :" style="font-weight: bold" styleClass="grid_3"/>
                        <h:outputText value="#{managerSearchNotaryOffice.address.phone}"  styleClass="grid_18"/>
                    <div class="clear"/>
                        <p:outputLabel value="Celular :" style="font-weight: bold" styleClass="grid_3"/>
                        <h:outputText value="#{managerSearchNotaryOffice.address.cellular}"  styleClass="grid_18"/>
                    <div class="clear"/>
                   
                   <div class="buttonAction">
                        <p:commandButton value="Voltar" icon="ui-icon-arrowreturnthick-1-w" 
                                         style="font-size: 12px; font-family: sans-serif;" 
                                         actionListener="#{managerRedirect.redirect('viewNotaryOffice.xhtml')}" immediate="true"/>
                   </div>
                </p:panel> 
            </h:form>
        </ui:define>
    </ui:composition>
</html>


